number of good pairs leetcode